package com.zhu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhu.domain.InventoryRecordItem;
import com.zhu.model.inventoryRecordItem.InventoryRecordItemSelectVM;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author JoyBoy
 * @since 2022-06-02
 */
public interface InventoryRecordItemService extends IService<InventoryRecordItem> {

    /**
     * 功能描述 添加库存记录详情
     * @author JoyBoyZH
     * @date 2022/6/12
     * @param inventoryRecordItem
     * @return boolean
     */
    boolean saveInventoryRecordItem(InventoryRecordItem inventoryRecordItem);
    /**
     * 功能描述 批量添加库存记录详情
     * @author JoyBoyZH
     * @date 2022/6/6
     * @param inventoryRecordItemList
     * @return boolean
     */
    boolean saveList(List<InventoryRecordItem> inventoryRecordItemList);

    /**
     * 功能描述 删除库存详情记录
     * @author JoyBoyZH
     * @date 2022/6/12
     * @param recordItemId
     * @return boolean
     */
    boolean deleteRecordItem(Integer recordItemId);


    /**
     * 功能描述 自定义xml关联查询
     * @author JoyBoyZH
     * @date 2022/6/6
     * @param recordId
     * @return java.util.List<com.zhu.model.inventoryRecord.RecordItemAndGoodsVM>
     */
    List<InventoryRecordItemSelectVM> getByRelevance(Integer recordId);

    InventoryRecordItem getByInventoryRecordItemId(Integer inventoryRecordItemId);

    boolean updateInventoryRecordItem(InventoryRecordItem inventoryRecordItem);
}
